package com.ruoyi.project.purchase.domain;

import com.ruoyi.framework.web.domain.BaseEntity;
import io.swagger.models.auth.In;

import javax.security.auth.Subject;
import java.util.Objects;

public class Purchase extends BaseEntity {
    private String purOrderId;
    private Double purCount;
    private Integer purVerify;
    private Integer supId;
    private Supplier supplier;

    public Purchase() {
    }

    public Purchase(String purOrderId, Double purCount, Integer purVerify, Integer supId, Supplier supplier) {
        this.purOrderId = purOrderId;
        this.purCount = purCount;
        this.purVerify = purVerify;
        this.supId = supId;
        this.supplier = supplier;
    }

    public String getPurOrderId() {
        return purOrderId;
    }

    public void setPurOrderId(String purOrderId) {
        this.purOrderId = purOrderId;
    }

    public Double getPurCount() {
        return purCount;
    }

    public void setPurCount(Double purCount) {
        this.purCount = purCount;
    }

    public Integer getPurVerify() {
        return purVerify;
    }

    public void setPurVerify(Integer purVerify) {
        this.purVerify = purVerify;
    }

    public Integer getSupId() {
        return supId;
    }

    public void setSupId(Integer supId) {
        this.supId = supId;
    }

    public Supplier getSupplier() {
        return supplier;
    }

    public void setSupplier(Supplier supplier) {
        this.supplier = supplier;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Purchase purchase = (Purchase) o;
        return Objects.equals(purOrderId, purchase.purOrderId) &&
                Objects.equals(purCount, purchase.purCount) &&
                Objects.equals(purVerify, purchase.purVerify) &&
                Objects.equals(supId, purchase.supId) &&
                Objects.equals(supplier, purchase.supplier);
    }

    @Override
    public int hashCode() {
        return Objects.hash(purOrderId, purCount, purVerify, supId, supplier);
    }

    @Override
    public String toString() {
        return "Purchase{" +
                "purOrderId='" + purOrderId + '\'' +
                ", purCount=" + purCount +
                ", purVerify=" + purVerify +
                ", supId=" + supId +
                ", supplier=" + supplier +
                '}';
    }
}
